package day15;
//本类是用来测试Runnable实现多线程的演示demo
public class TestThread2 {
    public static void main(String[] args) {
        MyRunnable target=new MyRunnable();
        Thread t1=new Thread(target);
        Thread t2=new Thread(target);
        Thread t3=new Thread(target);
        Thread t4=new Thread(target);
        t1.run();



    }
}
class MyRunnable implements Runnable{
    @Override
    public void run(){
        for (int i=0;i<10;i++){
            System.out.println(i+"="+Thread.currentThread().getName());
        }
    }
}